<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "d_try.prohibited_words".
 *
 * @property integer $id
 * @property string $words
 */
class ProhibitedWords extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.prohibited_words';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['words'], 'string', 'max' => 300],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'words' => '违禁词',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\ProhibitedWordsQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\ProhibitedWordsQuery(get_called_class());
    }
}
